package com.qqt.csr.common.config;

import com.qqt.csr.common.interceptor.mybatis.AutoFillFieldMetaObjectHandler;
import com.qqt.csr.common.interceptor.mybatis.PageInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(PageInterceptor.class)
@MapperScan("com.qqt.csr.*.mapper")
public class MybatisConfiguration {

    @Bean
    public AutoFillFieldMetaObjectHandler initAutoFillFieldMetaObjectHandler() {
        return new AutoFillFieldMetaObjectHandler();
    }
}
